#include<iostream>
#include <string>
using namespace std;

class A
{
public:
    void Func()
    {
        delete this;
    }

    ~A()
    {
        // delete this;
    }
};

int main()
{
    static A a;
    a.Func();
    // A* a = new A;
    // a->Func();
    // cout << "hello" <<endl;
    // const long int& a = NULL;
    // cout << typeid(NULL).name() <<endl;
    return 0;
}